/**
 * Author(s): xuming.Wong <xuming.Wong@gmail.com>
 */
#include "M2MeshLoader.h"

#include "OgreMesh.h"
#include "M2MeshLoadImpl.h"

namespace PQGame
{
	M2MeshLoader::M2MeshLoader(std::string path)
		: _path(path)
	{
	}

	M2MeshLoader::~M2MeshLoader()
	{
	}

	void M2MeshLoader::loadResource(Ogre::Resource *resource)
	{
		assert(resource);

		M2MeshLoadImpl impl(static_cast<Ogre::Mesh*>(resource));
		impl.load(_path);
		
	}
}
